home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!tsys.demon.co.uk
- From: Tom Wheeley <tomw@tsys.demon.co.uk>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: Fri, 12 Apr 96 03:23:56 GMT
- Organization: City Zen FM
- Message-ID: <829279436snz@tsys.demon.co.uk>
- References: <JSA.96Feb16135027@organon.com> <dewar.829048603@schonberg> <4kets3$ic0@news-s01.ny.us.ibm.net> <829194658snz@tsys.demon.co.uk> <DppsHq.1Ar@world.std.com>
- Reply-To: tomw@tsys.demon.co.uk
- X-NNTP-Posting-Host: tsys.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Sig-By: Tomsystems Quote v1.2. (c)1996 Tom Wheeley, tomw@tsys.demon.co.uk
- X-Mail2News-Path: tsys.demon.co.uk
-
- In article <DppsHq.1Ar@world.std.com>
- bobduff@world.std.com "Robert A Duff" writes:
-
- >
- > >Myself, I would see this auto-stop idea as a _feature_ of read(). features
- > >can only be relied upon portably if they are positively documented in POSIX.
- > >This feature is not therefore portable, as POSIX is muddy on the matter.
- > >
- > >I suppose in c.l.c speak, it would be called `implementation-defined'.
- >
- > If POSIX wants to make it implementation defined, or undefined, or
- > whatever, then it should say so explicitly. Making something undefined
- > by forgetting to define it is bad style.
-
- I didn't say it was right, I just said that's how it is. Although it seems
- that POSIX falls short of what is desired by many people, you cannot expect it
- to specify the definition for every possible case.
-
- As a programmer, you should know what to do if the spec does fall short, and
- that is to be conservative with what you give out, and liberal in what you
- receive; in the spirit of RFCs.
-
- imho, expecting read() to stop at the end of the file, despite asking it to
- read 1000 bytes is being liberal with what you give out.
-
- .splitbung
- --
- * TQ 1.0 * The 'Just So Quotes'.
- "I'm a paranoid agnostic. I doubt the existence of God, but I'm sure there is
- some force, somewhere, working against me." --Marc Maron
-